﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tanmia.Warehouse.Core;
using FluentNHibernate.Mapping;

namespace Tanmia.Warehouse.NHibernateRepository.Mapping
{
    public class PriceNameMap : ClassMap<PriceName>
    {
        public PriceNameMap()
        {
            Table("PriceName");

            Id(x => x.PriceNameID).Not.Nullable().Unique();
            Map(x => x.Name).Length(50).Not.Nullable();
        }
    }
}
